﻿@model Stat
@{
    ViewBag.Title = Model.Name;
}

<h2>Stat name: @Model.Name</h2>
@for (int i = 0; i < Model.Quantities.Count; i++)
{
    <h3>Quantity @(i + 1):</h3>
    <p>Name: @Model.Quantities[i].Name</p>
    <p>Unit: @Model.Quantities[i].Unit.Name</p>
}
@foreach (Quantity quantity in Model.Quantities)
{
    
}
@Html.ActionLink("Chart", "Chart", "Stat", new { id = Model.Id }, null)
@Html.ActionLink("List", "Stat", "Hit", new { id = Model.Id }, null)
@Html.ActionLink("Edit", "Edit", "Stat", new { stat = Model.Id }, null)
@Html.ActionLink("Delete", "Delete", "Stat", new { stat = Model.Id }, null)<hr />
@Html.ActionLink("Back", "List", "Stat")